# 求若干数据的平均值
from telnetlib import theNULL

theSum = 0
count = 0
while True:
    num = input("请您输入一个数据（分号代表结束）：")
    if num == ";":
        break
    num = float(num)
    theSum += num
    count += 1

print(f"平均值为{theSum / count}")

